package kr.hkit.powerjava.chapter11;

class Shape { 
	public Shape(String msg){
		System.out.println("Shape 생성자()" + msg);
	}
	
}

public class Rectangle extends Shape {
	
	public Rectangle() {
		super("from Rectangle"); //super생성자를 명시적 호출하니까 가능
		System.out.println("Rectangle 생성자()");
	}

	public static void main(String[] args) {
		Rectangle r = new Rectangle();
		
	}
}


